package com.bwie.gateway.config;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @className: IgnoreWhitesConfig
 * @Description: TODO
 * @version: v1.８.0
 * @author: 房新路
 * @date: 2025/7/2 18:00
 */
@Component
@ConfigurationProperties(prefix = "ignore")
@Data
@Log4j2
public class IgnoreWhitesConfig {
    /**
     * 白名单请求
     */
      private List<String> whites=new ArrayList<>();

    public void setWhites(List<String> whites) {
        log.info("加载白名单请求,白名单请求有:{}", JSONObject.toJSONString(whites));
        this.whites = whites;
    }
}